﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MetalSoda
{
    /// <summary>
    /// Specifies which endpoint can send a message of the indicated message type.   
    /// </summary>
    /// <remarks>
    /// Contracts document the messages that services can use to have specific conversations. 
    /// Each conversation has two endpoints: the initiator endpoint, the service that started the conversation, and the target endpoint, the service that the initiator is contacting.
    /// </remarks>
    public enum SentBy
    {
        /// <summary>
        /// Indicates that messages can be sent by both the initiator and the target.
        /// </summary>
        Any = 0,

        /// <summary>
        /// Indicates that only the initiator of the conversation can send messages. A service that starts a conversation is referred to as the initiator of the conversation.
        /// </summary>
        Initiator = 1,

        /// <summary>
        /// Indicates that only the target of the conversation can send messages. A service that accepts a conversation that was started by another service is referred to as the target of the conversation.
        /// </summary>
        Target = 2
    }
}
